﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 静态跟非静态的区别
{
   public static class Student
    {
        //静态类
            public static string _name;
            public static string Name
            {
                get { return Student._name; }
                set { Student._name = value; }
            }
            public static void M1()
            {
                Console.WriteLine("Hllo,World");
            }
            //静态类中只允许有静态成员，不允许出现实例成员。
            //public string _names;
        }
}
